isClient

abstract fun isClient(): Boolean

Whether the game includes a logical client or not. This will be true both for singleplayer games and the client side of a multiplayer game.

Return

true if a logical client is present (so you can access client code like MinecraftClient), false if the environment is a dedicated server.

Author

fzzyhmstrs

Since

0.5.0